#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QFileDialog>
#include <QMessageBox>
#include <QSettings>

#include "about.h"
#include "rename.h"

#include <stdio.h>

namespace Ui
{
    class MainWindowClass;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindowClass *ui;

    QString dir;
    QStringList filesOrig;
    QStringList filesNew;
    Rename *renameThreads;

    QSettings *settings;
    QFlags<QDir::Filter> _dirFilter;

    int _threads;
    int _activeThreads;
    int _threadErrors;

private slots:
    void on_action_About_activated();
    void on_action_RRename_activated();
    void on_action_Open_Directory_activated();
public slots:
    void renameThreadFinished();
};

#endif // MAINWINDOW_H
